//
//  Person.h
//  OC3_继承与初始化方法作业第二题
//
//  Created by 徐国庆 on 14-11-4.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject

//////////////////////////////////////////////////////////////
//        OC3_继承与初始化方法    作业    第二题
// 定义类:Family,Man,Woman,Child Family⾥里包含实例变量hunband,wife,son,⽅方法party,travel。 Man⾥里包含wife,age,sex,name,son,⽅方法makeMoney Woman⾥里包含hunband,age,sex,name,son,⽅方法doHousework,cook Child⾥里包含age,sex,name,father,mother,⽅方法play,study 提⽰示:是否可以定义⼀一个⽗父类Person?
{
    // 声明成员变量
    NSString *_hunband;
    NSString *_wife;
    NSString *_son;
    NSString *_father;
    NSString *_mother;
    NSString *_name;
    NSString *_sex;
    int _age;
}
// 声明设置器方法
- (void)setHunband:(NSString *)hunband;
- (void)setWife:(NSString *)wife;
- (void)setSon:(NSString *)son;
- (void)setFather:(NSString *)father;
- (void)setMother:(NSString *)mother;
- (void)setName:(NSString *)name;
- (void)setSex:(NSString *)sex;
- (void)setAge:(int)age;
// 声明访问器方法
- (NSString *)hunband;
- (NSString *)wife;
- (NSString *)son;
- (NSString *)father;
- (NSString *)mother;
- (NSString *)name;
- (NSString *)sex;
- (int)age;
// 声明指定初始化
- (id)initWithHunband:(NSString *)hunband wife:(NSString *)wife son:(NSString *)son father:(NSString *)father mother:(NSString *)mother name:(NSString *)name sex:(NSString *)sex age:(int)age;



























@end
